

<?php 
include('../Connections/AccesosBD.php');

$return = '';
if (isset($_POST['return'])){
$return = $_POST['return'];
}
$noClose = '';
if (isset($_POST['noClose'])){
$noClose = $_POST['noClose'];
}
?>

<input type="button" value="Buscar" onclick="searchClis()" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>Nombres :</td>
    <td>
      <input name="t_lc_noms" type="text" id="t_lc_noms" size="40" maxlength="40" />
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Ap.Paterno :</td>
    <td>
      <input name="t_lc_apat" type="text" id="t_lc_apat" size="40" maxlength="40" />
    </td>
    <td>Ap.Materno :</td>
    <td>
      <input name="t_lc_amat" type="text" id="t_lc_amat" size="40" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td>DNI / RUC :</td>
    <td>
      <input name="t_lc_nif" type="text" id="t_lc_nif" size="20" maxlength="12" />
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Direccion :</td>
    <td colspan="3">
      <input name="t_lc_dir" type="text" id="t_lc_dir" size="65" maxlength="50" />
    </td>
  </tr>
  <tr>
    <td>Contacto :</td>
    <td colspan="3">
      <input name="t_lc_con" type="text" id="t_lc_con" size="45" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4">
    <div id="d_rescli" style="max-height:300px; overflow:	auto" ></div>
    </td>
  </tr>
</table>

<script type="text/javascript">
function searchClis(){
	$('#d_rescli').loadx('Consultas/Opers/queryClis.php',{
		oper : 'view',
		finder : '<?php echo $return;?>',
		noClose : '<?php echo $noClose;?>',
		t_lc_noms : GEBI('t_lc_noms').value,
		t_lc_apat : GEBI('t_lc_apat').value,
		t_lc_amat : GEBI('t_lc_amat').value,
		t_lc_dir : GEBI('t_lc_dir').value,
		t_lc_nif : GEBI('t_lc_nif').value,
		t_lc_dir : GEBI('t_lc_dir').value,
		t_lc_con : GEBI('t_lc_con').value
	});
}
</script>